<?php



use Doctrine\ORM\Mapping as ORM;

/**
 * Constituer
 *
 * @ORM\Table(name="constituer")
 * @ORM\Entity
 */
class Constituer
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var float $cstqte
     *
     * @ORM\Column(name="cstQte", type="float", nullable=true)
     */
    private $cstqte;

    /**
     * @var Medicament
     *
     * @ORM\OneToOne(targetEntity="Medicament")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="medDepotlegal", referencedColumnName="medDepotlegal", unique=true)
     * })
     */
    private $meddepotlegal;

    /**
     * @var Composant
     *
     * @ORM\OneToOne(targetEntity="Composant")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="cmpCode", referencedColumnName="cmpCode", unique=true)
     * })
     */
    private $cmpcode;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set cstqte
     *
     * @param float $cstqte
     * @return Constituer
     */
    public function setCstqte($cstqte)
    {
        $this->cstqte = $cstqte;
        return $this;
    }

    /**
     * Get cstqte
     *
     * @return float 
     */
    public function getCstqte()
    {
        return $this->cstqte;
    }

    /**
     * Set meddepotlegal
     *
     * @param Medicament $meddepotlegal
     * @return Constituer
     */
    public function setMeddepotlegal(\Medicament $meddepotlegal = null)
    {
        $this->meddepotlegal = $meddepotlegal;
        return $this;
    }

    /**
     * Get meddepotlegal
     *
     * @return Medicament 
     */
    public function getMeddepotlegal()
    {
        return $this->meddepotlegal;
    }

    /**
     * Set cmpcode
     *
     * @param Composant $cmpcode
     * @return Constituer
     */
    public function setCmpcode(\Composant $cmpcode = null)
    {
        $this->cmpcode = $cmpcode;
        return $this;
    }

    /**
     * Get cmpcode
     *
     * @return Composant 
     */
    public function getCmpcode()
    {
        return $this->cmpcode;
    }
}